]> dgit.raspbian.org Git - gnome-shell.git/commit
breakManager: Fix a potential null object dereference
authorPhilip Withnall <pwithnall@gnome.org>
Wed, 2 Apr 2025 11:05:43 +0000 (12:05 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 11 Apr 2025 13:18:48 +0000 (13:18 +0000)
commite280cc965164f388413e47bce23b9383e3d2d5ed
tree1b783e4f6bd66f142fe3524a7f54162fc983e121
parent5514502277acf85e3273a77f0b35a66ecf5b71ed
breakManager: Fix a potential null object dereference

There’s no `else` branch above, so it’s possible for
`this._notification` to be `null` at the bottom of the function
(especially if the user has explicitly closed the previous
notification), so handle that.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8280
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3687>
js/misc/breakManager.js